import http from "@/utils/request";
//wx 获得openid
export function login(data: {code: string}): Promise<Record<any, any>> {
    return http('/dispatch/login',data, {
        loading: true,
        method: 'POST',
    });
}

//登录信息
export function addUserInfo(data: Record<any, any>) {
    return http('/wx/dispatch/user',data,{
        loading: true,
        method: 'POST',
    });
}

//上传头像
export  function uploadAvatar(data: Record<any, any>) {
    return http('/oss/uploadFile',data,{
        loading: true,
        method: 'POST',
    });
}

//查询用户信息，头像等
export function queryUserInfo() {
    return http('/wx/dispatch/user/getInfoByOpenId');
}

//查询用户信息，头像等
export function querySelectAllNotSysConfig(type: string) {
    return http('/wx/system/dict/data/list/' + type);
}
//接单类目
export function getFirstCategoryApi() {
    return http('/wx/acceptance/category/getFirstCategory');
}

//技能标签
export function getFirstSkillTagApi() {
    return http('/wx/system/dict/data/list/skill_tags');
}

